import request from '@/utils/request'

// 查询需求方列表
export function listUserNeed(query) {
  return request({
    url: '/informfrontend/userNeedBack/list',
    method: 'get',
    params: query
  })
}

// 查询需求方详细
export function getUserNeed(userId) {
  return request({
    url: '/informfrontend/userNeedBack/' + userId,
    method: 'get'
  })
}

// 新增需求方
export function addUserNeed(data) {
  return request({
    url: '/informfrontend/userNeedBack',
    method: 'post',
    data: data
  })
}

// 修改需求方
export function updateUserNeed(data) {
  return request({
    url: '/informfrontend/userNeedBack',
    method: 'put',
    data: data
  })
}

// 删除需求方
export function delUserNeed(userId) {
  return request({
    url: '/informfrontend/userNeedBack/' + userId,
    method: 'delete'
  })
}
